package com.light.modules.admin.system.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Page;
import com.light.modules.admin.system.model.base.BaseZcurdField;

public class ZcurdField extends BaseZcurdField<ZcurdField> {
	private static final long serialVersionUID = 1L;
	public static final ZcurdField me = new ZcurdField();
	

	public Page<ZcurdField> paginate(int pageNumber, int pageSize, int headId) {
		return paginate(pageNumber, pageSize, "select * ", "from zcurd_field where head_id=? order by order_num", new Object[]{headId});
	}
	
	public List<ZcurdField> findByHeadId(int headId) {
		return find("select * from zcurd_field where head_id=? order by order_num", headId);
	}
}
